package com.online.service;

import com.online.dao.AdminMapper;
import com.online.entity.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    AdminMapper adminMapper;

    @Override
    public Admin showAdmin(Integer adminId) {
        return adminMapper.selectByAdminId(adminId);
    }

    @Override
    public Admin showAdminByWorkNumber(String workNumber) {
        return adminMapper.selectByWorkNumber(workNumber);
    }
}
